#define NEW_PRINTF_SEMANTICS
#include "printf.h"
#include "TestSensorMessage.h"
configuration TestSensorAppC{

}

implementation {

components MainC,LedsC,TestSensorC;

components new SensirionSht11C();

components new HamamatsuS1087ParC();

components new TimerMilliC();

components PrintfC;

//components SerialStartC;

components SerialActiveMessageC as AM;	//与PC通信组件

TestSensorC -> MainC.Boot;

TestSensorC.SampleTimer -> TimerMilliC;

TestSensorC.Leds -> LedsC;

TestSensorC.readTemp -> SensirionSht11C.Temperature;

TestSensorC.readHumidity -> SensirionSht11C.Humidity;

TestSensorC.readPhoto -> HamamatsuS1087ParC;

TestSensorC.Control -> AM;				//通信模块启动接口

TestSensorC.AMSend -> AM.AMSend[AM_SENSOR_MSG];		//发送

TestSensorC.Packet -> AM;				//包格式
}